#pragma once

struct Vector2
{
	float x;
	float y;

	Vector2(float _x, float _y ) : x(_x), y(_y) {}
	Vector2() : x(0.0f), y(0.0f) {}

	
	Vector2 operator - (const Vector2& other);
	Vector2 operator + (const Vector2& other);
	float lengthSq() const;
	float length() const;
	Vector2 normalized() const;
};

Vector2 operator * (const Vector2& vector, float scalar);